﻿using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace VisionCloud.Core.Model.Ms
{
    [Table("MsTaskWxMessage")]
    public class MsTaskWxMessage : BaseEntity
    {
        /// <summary>
        /// 主键
        /// </summary>
        [Key]
        [Column(TypeName = "uuid")]
        [DatabaseGenerated(DatabaseGeneratedOption.None)]
        public Guid Id { get; set; }

        /// <summary>
        /// 任务Id
        /// </summary>
        public Guid TaskId { get; set; }

        /// <summary>
        /// 微信用户openid
        /// </summary>
        public string OpenId { get; set; }

        /// <summary>
        /// 消息模板Id
        /// </summary>
        public string TemplateId { get; set; }

        /// <summary>
        /// 发送状态：0待发送，1已发送
        /// </summary>
        public int Status { get; set; }

        /// <summary>
        /// 消息内容
        /// </summary>
        public string Message { get; set; }
    }
}
